Skip to content

SwitchToSignal class

Defined in

Namespace: ReactiveUI.Primitives.Async Assembly: ReactiveUI.Primitives.Async.Core.dll Full name: ReactiveUI.Primitives.Async.SwitchToSignal<T> Modifiers: public sealed

Summary

View source

        Async observable that switches to the most recently emitted inner observable sequence,
        unsubscribing from the previous inner sequence each time a new one arrives.
        

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481

Class hierarchy
classDiagram
class SwitchToSignal~T~
class SignalAsync~T~
SignalAsync~T~ <|-- SwitchToSignal~T~

Inherits from: SignalAsync

Constructors

NameSummary
.ctorAsync observable that switches to the most recently emitted inner observable sequence, unsubscribing from the previous inner sequence each time a new one arrives.

Methods

NameSummary
SubscribeAsyncCoreSubscribes the specified observer by creating a SwitchToCoordinator that manages the outer and inner observable lifetimes.
Inherited members